package com.abc.structure.binarySearchTree;

public class Person {

    private int age;

    public Person(int age) {
        this.age = age;
    }

    public int compareTo(Person o) {
        return age - o.age;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    @Override
    public String toString() {
        return "age=" + age;
    }
}
